using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline.Processors;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;

namespace HadronData
{
    [ContentTypeWriter]
    public class EdgeContentTypeWriter : ContentTypeWriter<Edge>
    {
        protected override void Write(ContentWriter p_contentWriter, Edge p_edge)
        {
            p_contentWriter.Write(p_edge.Start);
            p_contentWriter.Write(p_edge.End);
            p_contentWriter.WriteObject(p_edge.Colour);
        }

        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {
            return typeof(EdgeContentTypeReader).AssemblyQualifiedName;
        }
    }
}
